class Star {
  _name: string;
  constructor(name: string) {
    this._name = name
  }
  getName() {
    return this._name
  }
}

class Company {
  _name: string;
  constructor(name: string) {
    this._name = name
  }
  getName() {
    return this._name
  }
}

class Fans {
  _name: string;
  constructor(name: string) {
    this._name = name
  }
  getName() {
    return this._name
  }
}

class Agent {
  _star: Star
  _company: Company
  _fans: Fans

  setStar(star: Star) {
    this._star = star
  }
  setCompany(company: Company) {
    this._company = company
  }
  setFans(fans: Fans) {
    this._fans = fans
  }

  meeting() {
    console.log(`经济公司安排了${this._star.getName()}和${this._fans.getName()}粉丝见面`)
  }

  business() {
    console.log(`经济公司安排了${this._star.getName()}和${this._company.getName()}公司谈合作`)
  }
}

const agent = new Agent()
agent.setStar(new Star('王冬'))
agent.setFans(new Fans('佐佐木希'))
agent.setCompany(new Company('牛逼'))


agent.meeting()
agent.business()